var fs = require('fs');

exports.index = function(req, res){
	res.render('page1.html', { title1: '', test1:'hello tv_and_str' });
};

exports.getjson = function(req, res){
	
	
	fs.readFile('/data/db.json', 'utf-8',function(err, data){
		if(err) throw err;
		console.log(data);
		res.render('page1.html', data);
	});
	
};
